﻿Public Enum CronStatus
    NotInitialized
    Initializing
    Executing
    Completed
    Canceled
    Errored
End Enum

Public Interface iCronTask

    ReadOnly Property CronGuid As Guid
    ReadOnly Property CronName As String
    ReadOnly Property CronStatus As CronStatus
    ReadOnly Property AllowConcurrent As Boolean

    Event Completed(sender As iCronTask)
    Event Canceled(sender As iCronTask)

    Sub Execute()
    Sub Cancel()

End Interface
